def bubbl_sort_fun(*args):
    args = list(args)  # 将可变参数转换为列表
    for i in range(len(args)):
        for j in range(0, len(args)-i-1):  # 修改内层循环的起始和终止条件
            if args[j] > args[j+1]:
                temp = args[j]
                args[j] = args[j+1]
                args[j+1] = temp

    print("冒泡排序结果：[",end='')
    for i in range(len(args)-1):
        print(args[i],end=', ')
    print(args[len(args)-1],end='')
    print(']')


bubbl_sort_fun(3, 9, 7, 6, 10)